package com.xuan.shop.service;

import com.xuan.shop.entity.Privs;
import com.xuan.shop.entity.User;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface IUserService {
    void save(User  user);
    void deleteById(int id);
    void update(User user);
    List<User> findAll();
    User login(String username, String password);
    boolean isAvailableUserName(String username);
    void registUser(User user);
}
